using System;
using Randomize.Core.Generators;

namespace Randomize.Core.Descriptors
{
    public class IntDescriptor : RangeGenerationDesciptor<int, IIntDescriptor>, IIntDescriptor
    {
        public override IGenerator<int> CreateGenerator(Random random)
        {
            return new IntGenerator(random)
                   {
                       MaxValue = this.Max,
                       MinValue = this.Min,
                       Pool = this.Pool
                   };
        }
    }
}